package com.ciei.dpagm.controller;

import com.alibaba.fastjson.JSONObject;
import com.ciei.dpagm.common.controller.BaseController;
import com.ciei.dpagm.service.FormPropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangyan
 * @date 2022/06/02
 */
@RestController
@RequestMapping("formProperty")
public class FormPropertyController extends BaseController {

    @Autowired
    private FormPropertyService formPropertyService;

    @RequestMapping("matchSingleInstanceWithProperties")
    public JSONObject matchSingleInstanceWithProperties(@RequestBody JSONObject data) {
        return formPropertyService.matchSingleInstanceWithProperties(data);
    }

}
